<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>闭包</title>
</head>
<body>
    
    <script>
        function aFn(){
            var a = 2;
            var inner = function bFn(){
                var b = 3;
                console.log(b);
            }
            return inner;
        }
        var inner = aFn();
        inner();
    </script>
</body>
</html>